﻿using System;
using System.Collections.Generic;

namespace Models
{
    /// <summary>
    /// 采购申请主表
    /// </summary>
    public class PurchaseOrderHead
    {
        /// <summary>
        /// 主键
        /// </summary>
        public decimal ID { get; set; }

        /// <summary>
        /// 订单编号
        /// </summary>
        public string PO_OrderNo { get; set; }

        /// <summary>
        /// 采购时间
        /// </summary>
        public DateTime PO_OrderDate { get; set; }

        /// <summary>
        /// 采购人员
        /// </summary>
        public string PO_Buyer { get; set; }

        /// <summary>
        /// 所属公司ID
        /// </summary>
        public int PO_CompanyId { get; set; }

        /// <summary>
        /// 所属公司名称
        /// </summary>
        public string PO_CompanyName { get; set; }

        /// <summary>
        /// 所属部门ID
        /// </summary>
        public int PO_DeptId { get; set; }

        /// <summary>
        /// 所属部门名称
        /// </summary>
        public string PO_DeptName { get; set; }

        /// <summary>
        /// 到货时间
        /// </summary>
        public DateTime PO_DeliveryDate { get; set; }

        /// <summary>
        /// 供应商ID
        /// </summary>
        public int PO_SupplierId { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        public string PO_SupplierName { get; set; }

        /// <summary>
        /// 收货信息
        /// </summary>
        public string PO_ReceivingInfo { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string PO_Remarks { get; set; }

        /// <summary>
        /// 审核状态（0：审批中；1：已审批；2：暂存）
        /// </summary>
        public int PO_AuditStatus { get; set; }

        /// <summary>
        /// 预计总金额
        /// </summary>
        public decimal PO_TotalAmount { get; set; }

        /// <summary>
        /// 是否删除（0：未删除；1：已删除）
        /// </summary>
        public int IsDelete { get; set; }

        /// <summary>
        /// 相关文件
        /// </summary>
        public List<FileData> FileList { get; set; }

        /// <summary>
        /// 资产集合
        /// </summary>
        public List<PurchaseOrderBody> ItemList { get; set; }

        public PurchaseOrderHead()
        {
            PO_Remarks = "";
            IsDelete = 0;
            FileList = new List<FileData>();
            ItemList = new List<PurchaseOrderBody>();
        }

    }
}
